﻿using Ninject.Core.Parameters;
using TestBat.IModels.Domain;
using TestBat.IViewModels.Factories;
using TestBat.IViewModels.Workspaces.Tasks;
using TestBat.ServiceLocator;

namespace TestBat.ViewModels.Factories
{
    public class LeafTaskFolderViewModelFactory : ILeafTaskFolderViewModelFactory
    {
        public ILeafTaskFolderViewModel Create(ILeafTaskFolder taskFolder)
        {
            return DefaultServiceLocator.Get<ILeafTaskFolderViewModel>(
                With.Parameters.ConstructorArgument("taskFolder", taskFolder)
                );
        }
    }
}
